package com.financing.wap.dto;

import java.math.BigDecimal;
import java.util.Date;

import com.financing.wap.common.CommonConstantUtil;
import com.financing.wap.vo.ProductAppointmentVO;

/**
 * 推荐字段DTO
 * @author luohanbin
 *
 */
public class ProductRecommendPageDTO extends BaseDTO {

//	private String 
//	ID,
//	P_CODE,
//	P_NAME,
//	P_PROFIT,
//	P_FREQUENCY_OPEN,
//	P_MINIMUM_AMOUNT,
//	P_REBATE_TYPE,
//	P_REBATE_VALUE
	
//	public static final String REBATE_RATIO = "01";
	
	private static final long serialVersionUID = 8922794712232299220L;
	
	private Integer productId;
	private String productCode;
	private String productName;  //
	private Double profit;  //
	private Integer dueTime;  //期限
	private Integer mininumAmount; //最低金额
	private String rebateType; //返利类 型  01百分比， 02固定值
	private Double rebateValue; //返利值

	private Boolean isRatio; //是否百分比
	
	private ProductAppointmentVO productAppointmentVO;
	
	private BigDecimal expectSaleAmount; //期望销售金额
	private Date establishmentTime; //产品成立日期
	
	public Integer getProductId() {
		return productId;
	}
	public void setProductId(Integer productId) {
		this.productId = productId;
	}
	public String getProductCode() {
		return productCode;
	}
	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}
	public String getProductName() {
		return productName;
	}
	public void setProductName(String productName) {
		this.productName = productName;
	}
	public Double getProfit() {
		return profit;
	}
	public void setProfit(Double profit) {
		this.profit = profit;
	}
	public Integer getDueTime() {
		return dueTime;
	}
	public void setDueTime(Integer dueTime) {
		this.dueTime = dueTime;
	}
	public Integer getMininumAmount() {
		return mininumAmount;
	}
	public void setMininumAmount(Integer mininumAmount) {
		this.mininumAmount = mininumAmount;
	}
	public String getRebateType() {
		return rebateType;
	}
	public void setRebateType(String rebateType) {
		this.rebateType = rebateType;
	}
	public Double getRebateValue() {
		return rebateValue;
	}
	public void setRebateValue(Double rebateValue) {
		this.rebateValue = rebateValue;
	}
	
	/**
	 * 返利是否百分比
	 * @return
	 */
	public Boolean getIsRatio() {
		if(isRatio == null)
			isRatio = CommonConstantUtil.isRatio(rebateType); 
		return isRatio;
	}
	
	public void setIsRatio(Boolean isRatio) {
		this.isRatio = isRatio;
	}
	public ProductAppointmentVO getProductAppointmentVO() {
		return productAppointmentVO;
	}
	public void setProductAppointmentVO(ProductAppointmentVO productAppointmentVO) {
		this.productAppointmentVO = productAppointmentVO;
	}
	public BigDecimal getExpectSaleAmount() {
		return expectSaleAmount;
	}
	public void setExpectSaleAmount(BigDecimal expectSaleAmount) {
		this.expectSaleAmount = expectSaleAmount;
	}
	public Date getEstablishmentTime() {
		return establishmentTime;
	}
	public void setEstablishmentTime(Date establishmentTime) {
		this.establishmentTime = establishmentTime;
	}
	

	
	
}
